<?php
namespace app\admin\model;

use think\model;
class Category extends Model{
    public static function getCateF($parentid=0){
        $list = Category::where('parentid','=',$parentid)->select();
        return $list;
    }
    public static function getCateS(){
        $list = Category::where('parentid','<>','0')->select();
        return $list;
    }
    public static function getCateEr(){
        $er=Category::distinct(true)->column('parentid');
        return $er;
    }
}